Skip to content

Less deprecated calls to OCP\Util::writeLog#9255

Merged
rullzer merged 1 commit intomasterfrom
less-deprecated-calls
Apr 23, 2018
Merged

Less deprecated calls to OCP\Util::writeLog#9255
rullzer merged 1 commit intomasterfrom
less-deprecated-calls

Conversation

@MorrisJobke
Copy link
Member

Ref #8375

@MorrisJobke MorrisJobke added 3. to review Waiting for reviews technical debt 🧱 🤔🚀 labels Apr 20, 2018
@MorrisJobke MorrisJobke added this to the Nextcloud 14 milestone Apr 20, 2018

// FIXME this should be a method in the user management instead
\OCP\Util::writeLog('files_sharing', 'shareWith before, ' . $shareWith, \OCP\Util::DEBUG);
$logger = \OC::$server->getLogger();
Copy link
Member

@nickvergessen nickvergessen Apr 20, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No DI?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is specified in the ->debug() call

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what? I mean require ILogger in the constructor instead of using global \OC::$server here

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure would make sense of course 🙈

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See #9269

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
@rullzer rullzer force-pushed the less-deprecated-calls branch from b38b057 to dd34cb7 Compare April 22, 2018 18:42
@codecov
Copy link

codecov bot commented Apr 22, 2018

Codecov Report

Merging #9255 into master will increase coverage by 0.04%.
The diff coverage is 50%.

@@             Coverage Diff              @@
##             master    #9255      +/-   ##
============================================
+ Coverage      51.9%   51.95%   +0.04%     
- Complexity    25365    25375      +10     
============================================
  Files          1607     1607              
  Lines         95330    95393      +63     
  Branches       1394     1394              
============================================
+ Hits          49482    49557      +75     
+ Misses        45848    45836      -12
Impacted Files Coverage Δ Complexity Δ
cron.php 0% <0%> (ø) 0 <0> (ø) ⬇️
apps/files_sharing/lib/ShareBackend/File.php 28.45% <0%> (ø) 35 <0> (ø) ⬇️
...les_external/lib/Service/LegacyStoragesService.php 0% <0%> (ø) 24 <0> (ø) ⬇️
apps/files_sharing/lib/SharedMount.php 79.54% <0%> (+3.45%) 27 <0> (ø) ⬇️
apps/dav/lib/Connector/Sabre/File.php 73.2% <100%> (ø) 103 <0> (ø) ⬇️
...haring/lib/Controller/RequestHandlerController.php 30.47% <100%> (+0.22%) 82 <0> (ø) ⬇️
apps/files_trashbin/lib/Trashbin.php 72.46% <40%> (ø) 136 <0> (ø) ⬇️
apps/files_versions/lib/Storage.php 66.06% <60%> (+0.08%) 103 <0> (ø) ⬇️
lib/private/Comments/Manager.php 96.47% <0%> (+0.62%) 89% <0%> (+9%) ⬆️
lib/private/DB/ConnectionFactory.php 67.07% <0%> (+8.09%) 24% <0%> (+1%) ⬆️

@rullzer rullzer merged commit a80fcf1 into master Apr 23, 2018
@rullzer rullzer deleted the less-deprecated-calls branch April 23, 2018 06:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews technical debt 🧱 🤔🚀

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants